package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
;import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lovo
 * @since 2023-07-21
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    public IPage<User> selectUserByName(Page page, String username);

    public void insertUserRoles(@Param("role") List<Integer> role,@Param("id") Integer id);

    public void deleteUserRoles(Integer id);

    public User selectUser(Integer userId);


}
